package ru.ifmo.swing;

import javax.swing.*;
import java.util.Map;

/**
 * @author avhaliullin
 */
public class TabbedPanel extends JTabbedPane {
    public void setTabs(Map<String, JComponent> tabs) {
        removeAll();
        for (Map.Entry<String, JComponent> tab : tabs.entrySet()) {
            addTab(tab.getKey(), tab.getValue());
        }
    }
}
